package cn.jbolt.ai.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.JsonNode;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
/**
 * AI应用节点表
 */
@TableName("ja_ai_app_node")
public class AiAppNode implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(name = "type", description = "节点类型")
    @TableField("type")
    private String type;

    @Schema(name = "appId", description = "所属的应用")
    @TableField("app_id")
    private Long appId;

    @Schema(name = "afters", description = "后续节点")
    @TableField("afters")
    private String afters;


    //以下是非数据库字段
    @TableField(exist = false)
    private JsonNode config;

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public String getAfters() {
        return afters;
    }

    public void setAfters(String afters) {
        this.afters = afters;
    }

    public JsonNode getConfig() {
        return config;
    }

    public void setConfig(JsonNode config) {
        this.config = config;
    }
}
